<template>
  <div>
    <h5 class="mb-4">接口统计</h5>

    <div class="row">
      <div class="col-sm-12 col-xl-12">
        <b-card no-body header="企业工商信息" header-tag="h6" class="mb-2">
            <api-call-count-bar class="mt-2"></api-call-count-bar>
        </b-card>
      </div>

    </div>
  </div>
</template>

<style scoped>
</style>

<script>
import ApiCallCountBar from '@/components/charts/ApiCallCountBar'

export default {
    name: "ConsoleDefine",
    components: {
        'api-call-count-bar': ApiCallCountBar
    },
    data: () => ({
        table: {
            showIndex: false,
            data: [],
            columns: [
                {
                    title: "API名称",
                    key: "name"
                },
                {
                    title: "下探别名",
                    key: "alianame"
                },
                {
                    title: "下探类型",
                    key: "todo"
                },
                {
                    title: "状态",
                    key: "status"
                }
            ]
        }
    }),
    created() {
        let vm = this;
        vm.$http.get("/static/json/api_downlist-data.json").then(function(res) {
            // const data = JSON.parse(res.data);
            vm.table.data = res.data;
            // console.log(vm.table);
        });
    }
};
</script>
